package com.hl.card.modular.packBack.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;
import com.hl.card.common.util.HttpURLClient;
import com.hl.card.common.util.ResponseData;
import com.hl.card.modular.packBack.service.PassCardManagerService;

@Service
public class PassCardManagerServiceImpl implements PassCardManagerService{
	
	@Value("${card.lsUrl}")
	private String url;
	
	@Autowired
	private ResponseData responseData;
	
	@Override
	public JSONObject queryCard(Map<String, String> maps) throws Exception {
		 String result= HttpURLClient.post(maps, url);
		 responseData.setData(JSONObject.parse(result));
		 responseData.setMsg("操作成功");
		 responseData.setStatus("1");
		 return JSONObject.parseObject(result);
	}
}
